import request from "@/utils/request";
//标签管理
export function getTag() {
  return request({
    url: `api/tag`,
  });
}

//标签保存
export function getLabel(obj) {
  return request({
    url: `/api/tag`,
    method: "post",
    data: obj,
  });
}

//删除标签管理接口
export function getTagDel(id) {
  return request({
    url: `/api/tag/${id}`,
    method: "delete",
  });
}

//更新标签接口
export function getTagUpdate(obj) {
  return request({
    url: `/api/tag/${obj.id}`,
    method: "patch",
    data: { label: obj.label, value: obj.value },
  });
}
